package com.baitengsoft.patentservicemonitor.api.service.impl;

import com.baitengsoft.patentservicemonitor.api.dao.PacApplicantDao;
import com.baitengsoft.patentservicemonitor.api.entity.PacApplicantEntity;
import com.baitengsoft.patentservicemonitor.api.service.PacApplicantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Admin on 2018/1/16.
 */
@Service("PacApplicantService")
public class PacApplicantImpl implements PacApplicantService {
    @Autowired
    PacApplicantDao pacApplicantDao;

    @Override
    public void deletePacApplicant(Integer PlatformID) {
        pacApplicantDao.deletePacApplicant(PlatformID);
    }

    @Override
    public PacApplicantEntity queryPacApplicant(Integer PlatformID, String NAME, Integer TypeLevel1, String Address) {
        PacApplicantEntity entity = pacApplicantDao.queryPacApplicant(PlatformID,NAME,TypeLevel1,Address);
        return entity;
    }

    @Override
    public void updatePacApplicant(Integer PlatformID, Integer IsUpdate, Integer ID) {
        pacApplicantDao.updatePacApplicant(PlatformID,IsUpdate,ID);
    }

    @Override
    public void addPacApplicant(PacApplicantEntity pacApplicantEntity) {
        pacApplicantDao.save(pacApplicantEntity);
    }
}
